<template>
    <el-tag type="info">{{ gameData.label }}</el-tag>
</template>

<script>
    export default {
        props: ['data'],
        data () {
            return {
                os: this.$store.state.backend.options.os,
            };
        },
        watch: {},
        computed: {
            gameData() {
                let tmp = {
                    label: this.data,
                    value: this.data,
                }
                for (let i in this.os) {
                    if (this.os[i].value === this.data) {
                        tmp = this.os[i];
                        break;
                    }
                }
                return tmp;
            },
        },
        methods: {

        },
        created() {

        }
    }
</script>

<style scoped>

</style>
